<!DOCTYPE html>
<html>
<head>
<title>req_assign</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<link rel="stylesheet" type="text/css"
	href="/codebase/fonts/font_roboto/roboto.css" />
<link rel="stylesheet" type="text/css" href="/codebase/dhtmlx.css" />
<script type="text/javascript" src="/codebase/dhtmlx.js" />
<style>
div#simpleLog {
	height: 200px;
	font-family: Roboto, Arial, Helvetica;
	font-size: 14px;
	color: #404040;
	overflow: auto;
}

div.my_header div.text_block {
	height: 50px;
	line-height: 44px;
	font-size: 28px;
	color: #199BC6;
	margin-left: 5px;
	padding-left: 200px;
	background-image: url("/common/szsrcb-logo.png");
	background-repeat: no-repeat;
	background-position: center left;
}
</style>
<script>
/*<![CDATA[*/
		var myForm;
		
		function doOnLoad() {
		
			if (myForm) {
				myForm.unload();
				myForm = null;
			}
		
			myForm = new dhtmlXForm("form_container");
			myForm.loadStruct("/person_info_form_load");
			
			myForm.attachEvent("onButtonClick", function(name) {		
							
				if (name == "save_btn") {
					this.send("/person_info_save","post",callback);		
					
				}
			/* 	if (name == "regrister") {
					window.location.pathname="regrister";
				} */
			});
			
			/* myForm.attachEvent("onKeyDown",function(inp, ev, name, value){
				if(name=='pwd' && ev.keyCode==13){
					this.send("login","post",callback);		
				}
			    
			}); */
			
		}
		
		function callback(){
			if (arguments[1]=="true"){
				alert("保存用户成功");
				//window.location.pathname="login";
			}else{			
				alert(arguments[1]);
			}
			
		}
		/*]]>*/		
	</script>
</head>
<body onload="doOnLoad();">
	<table style="padding-left: 50px;">
		<tr>
			<td>
				<div id="form_container" name="form_container" ></div>
			</td>
		</tr>
	<tr>
			<td>
				<div id="form_container2" name="form_container2"
					 ></div>
			</td>
		</tr>
	</table>
	   
</body>
</html>